package com.mlz.mlzmall.ui.activity.frag.main;

import java.util.List;

/**
 * describe :
 * Created by Benny on 2016/6/3.
 * PackageName com.mlz.mlzmall.ui.activity.frag.main.
 * ProjectName mlzmall_android.
 */
public class CartDataBean {

    /**
     * status : 0
     * errors : [{}]
     * msg : string
     * data : [{"warehouse":"string","warehouseName":"string","type":0,"products":[{"productId":0,"name":"string","model":"string","refPrice":0,"price":0,"image":"string","priceType":"normal","priceTypeRecordId":0,"selected":true,"href":"string","location":"string","areaCode":"string","quantity":0,"productQuantity":0,"stockStatus":true,"points":0,"reward":0,"taxType":"string","weight":0,"length":0,"width":0,"height":0,"minimum":0,"tariffRates":0,"warehouse":"string","type":0,"productClass":"string","tax":0,"total":0}],"totals":[{"key":{"code":"string","title":"string","value":0,"sortOrder":0}}],"addressId":0,"freight":0,"tax":0,"total":0}]
     */

    private int status;
    private String msg;
    private List<ErrorsBean> errors;
    /**
     * warehouse : string
     * warehouseName : string
     * type : 0
     * products : [{"productId":0,"name":"string","model":"string","refPrice":0,"price":0,"image":"string","priceType":"normal","priceTypeRecordId":0,"selected":true,"href":"string","location":"string","areaCode":"string","quantity":0,"productQuantity":0,"stockStatus":true,"points":0,"reward":0,"taxType":"string","weight":0,"length":0,"width":0,"height":0,"minimum":0,"tariffRates":0,"warehouse":"string","type":0,"productClass":"string","tax":0,"total":0}]
     * totals : [{"key":{"code":"string","title":"string","value":0,"sortOrder":0}}]
     * addressId : 0
     * freight : 0
     * tax : 0
     * total : 0
     */

    private List<DataBean> data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<ErrorsBean> getErrors() {
        return errors;
    }

    public void setErrors(List<ErrorsBean> errors) {
        this.errors = errors;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class ErrorsBean {
    }

    public static class DataBean {
        private String warehouse;
        private String warehouseName;
        private int type;
        private int addressId;
        private int freight;
        private int tax;
        private int total;
        /**
         * productId : 0
         * name : string
         * model : string
         * refPrice : 0
         * price : 0
         * image : string
         * priceType : normal
         * priceTypeRecordId : 0
         * selected : true
         * href : string
         * location : string
         * areaCode : string
         * quantity : 0
         * productQuantity : 0
         * stockStatus : true
         * points : 0
         * reward : 0
         * taxType : string
         * weight : 0
         * length : 0
         * width : 0
         * height : 0
         * minimum : 0
         * tariffRates : 0
         * warehouse : string
         * type : 0
         * productClass : string
         * tax : 0
         * total : 0
         */

        private List<ProductsBean> products;
        /**
         * key : {"code":"string","title":"string","value":0,"sortOrder":0}
         */

        private List<TotalsBean> totals;

        public String getWarehouse() {
            return warehouse;
        }

        public void setWarehouse(String warehouse) {
            this.warehouse = warehouse;
        }

        public String getWarehouseName() {
            return warehouseName;
        }

        public void setWarehouseName(String warehouseName) {
            this.warehouseName = warehouseName;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getAddressId() {
            return addressId;
        }

        public void setAddressId(int addressId) {
            this.addressId = addressId;
        }

        public int getFreight() {
            return freight;
        }

        public void setFreight(int freight) {
            this.freight = freight;
        }

        public int getTax() {
            return tax;
        }

        public void setTax(int tax) {
            this.tax = tax;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<ProductsBean> getProducts() {
            return products;
        }

        public void setProducts(List<ProductsBean> products) {
            this.products = products;
        }

        public List<TotalsBean> getTotals() {
            return totals;
        }

        public void setTotals(List<TotalsBean> totals) {
            this.totals = totals;
        }

        public static class ProductsBean {
            private int productId;
            private String name;
            private String model;
            private int refPrice;
            private int price;
            private String image;
            private String priceType;
            private int priceTypeRecordId;
            private boolean selected;
            private String href;
            private String location;
            private String areaCode;
            private int quantity;
            private int productQuantity;
            private boolean stockStatus;
            private int points;
            private int reward;
            private String taxType;
            private int weight;
            private int length;
            private int width;
            private int height;
            private int minimum;
            private int tariffRates;
            private String warehouse;
            private int type;
            private String productClass;
            private int tax;
            private int total;

            public int getProductId() {
                return productId;
            }

            public void setProductId(int productId) {
                this.productId = productId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getModel() {
                return model;
            }

            public void setModel(String model) {
                this.model = model;
            }

            public int getRefPrice() {
                return refPrice;
            }

            public void setRefPrice(int refPrice) {
                this.refPrice = refPrice;
            }

            public int getPrice() {
                return price;
            }

            public void setPrice(int price) {
                this.price = price;
            }

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public String getPriceType() {
                return priceType;
            }

            public void setPriceType(String priceType) {
                this.priceType = priceType;
            }

            public int getPriceTypeRecordId() {
                return priceTypeRecordId;
            }

            public void setPriceTypeRecordId(int priceTypeRecordId) {
                this.priceTypeRecordId = priceTypeRecordId;
            }

            public boolean isSelected() {
                return selected;
            }

            public void setSelected(boolean selected) {
                this.selected = selected;
            }

            public String getHref() {
                return href;
            }

            public void setHref(String href) {
                this.href = href;
            }

            public String getLocation() {
                return location;
            }

            public void setLocation(String location) {
                this.location = location;
            }

            public String getAreaCode() {
                return areaCode;
            }

            public void setAreaCode(String areaCode) {
                this.areaCode = areaCode;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public int getProductQuantity() {
                return productQuantity;
            }

            public void setProductQuantity(int productQuantity) {
                this.productQuantity = productQuantity;
            }

            public boolean isStockStatus() {
                return stockStatus;
            }

            public void setStockStatus(boolean stockStatus) {
                this.stockStatus = stockStatus;
            }

            public int getPoints() {
                return points;
            }

            public void setPoints(int points) {
                this.points = points;
            }

            public int getReward() {
                return reward;
            }

            public void setReward(int reward) {
                this.reward = reward;
            }

            public String getTaxType() {
                return taxType;
            }

            public void setTaxType(String taxType) {
                this.taxType = taxType;
            }

            public int getWeight() {
                return weight;
            }

            public void setWeight(int weight) {
                this.weight = weight;
            }

            public int getLength() {
                return length;
            }

            public void setLength(int length) {
                this.length = length;
            }

            public int getWidth() {
                return width;
            }

            public void setWidth(int width) {
                this.width = width;
            }

            public int getHeight() {
                return height;
            }

            public void setHeight(int height) {
                this.height = height;
            }

            public int getMinimum() {
                return minimum;
            }

            public void setMinimum(int minimum) {
                this.minimum = minimum;
            }

            public int getTariffRates() {
                return tariffRates;
            }

            public void setTariffRates(int tariffRates) {
                this.tariffRates = tariffRates;
            }

            public String getWarehouse() {
                return warehouse;
            }

            public void setWarehouse(String warehouse) {
                this.warehouse = warehouse;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getProductClass() {
                return productClass;
            }

            public void setProductClass(String productClass) {
                this.productClass = productClass;
            }

            public int getTax() {
                return tax;
            }

            public void setTax(int tax) {
                this.tax = tax;
            }

            public int getTotal() {
                return total;
            }

            public void setTotal(int total) {
                this.total = total;
            }
        }

        public static class TotalsBean {
            /**
             * code : string
             * title : string
             * value : 0
             * sortOrder : 0
             */

            private KeyBean key;

            public KeyBean getKey() {
                return key;
            }

            public void setKey(KeyBean key) {
                this.key = key;
            }

            public static class KeyBean {
                private String code;
                private String title;
                private int value;
                private int sortOrder;

                public String getCode() {
                    return code;
                }

                public void setCode(String code) {
                    this.code = code;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public int getValue() {
                    return value;
                }

                public void setValue(int value) {
                    this.value = value;
                }

                public int getSortOrder() {
                    return sortOrder;
                }

                public void setSortOrder(int sortOrder) {
                    this.sortOrder = sortOrder;
                }
            }
        }
    }
}
